<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="../../../../WEB-INF/myTag.tld" prefix="my"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>上报信息详情</title>
	<link href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/iCheck/custom.css" rel="stylesheet">
</head>
<body>
<div class="ibox-content">

		<form id="subForm" method="post" class="form-horizontal">
			
			<div class="form-group">
				<label class="col-sm-3 control-label">重点人员编号</label>
				<div class="col-sm-8">
					<input type="text" id="zdrybh" 
						class="form-control" value="${localAtten.zdrybh}" subNum="16"/>
				</div>
			</div>
		
			<div class="form-group">
				<label class="col-sm-3 control-label">姓名</label>
				<div class="col-sm-8">
					<input type="text" id="xm" 
						class="form-control" value="${localAtten.xm}" subNum="16"/>
				</div>
			</div>
		
			<div class="form-group">
				<label class="col-sm-3 control-label">曾用名</label>
				<div class="col-sm-8">
					<input type="text" id="cym" 
						class="form-control" value="${localAtten.cym}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">别名</label>
				<div class="col-sm-8">
					<input type="text" id="bm" 
						class="form-control" value="${localAtten.bm}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">身份证号</label>
				<div class="col-sm-8">
					<input type="text"  id="sfzh" 
						class="form-control" value="${localAtten.sfzh}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">性别</label>
				<div class="col-sm-8">
					<input type="text" id="xb" 
						class="form-control" value="${localAtten.xb}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">出生日期</label>
				<div class="col-sm-8">
					<input type="text" id="csrq" 
						class="form-control" value="<my:DateSubString date="${localAtten.csrq}" subNum="10"/>" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">年龄</label>
				<div class="col-sm-8">
					<input type="text" id="nl" 
						class="form-control" value="${localAtten.nl}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">户籍地区划编码</label>
				<div class="col-sm-8">
					<input type="text" id="hjdqhDcode" 
						class="form-control" value="${localAtten.hjdqhDcode}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">户籍地详址</label>
				<div class="col-sm-8">
					<input type="text" id="hjdxz" 
						class="form-control" value="${localAtten.hjdxz}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">户籍地派出所</label>
				<div class="col-sm-8">
					<input type="text" id="hjdpcs" 
						class="form-control"  value="${localAtten.hjdpcs}" >
				</div>
			</div>		
			<div class="form-group">
				<label class="col-sm-3 control-label">户籍地派出所编码</label>
				<div class="col-sm-8">
					<input type="text" id="hjdpcsDcode" 
						class="form-control" value="${localAtten.hjdpcsDcode}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">现住地区划编码</label>
				<div class="col-sm-8">
					<input type="text" id="xzdqhDcode" 
						class="form-control" value="${localAtten.xzdqhDcode}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">现住地详址</label>
				<div class="col-sm-8">
					<input type="text" id="xzdxz" 
						class="form-control" value="${localAtten.xzdxz}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">现住地派出所</label>
				<div class="col-sm-8">
					<input type="text" id="xzdpcs" 
						class="form-control" value="${localAtten.xzdpcs}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">现住地派出所编码</label>
				<div class="col-sm-8">
					<input type="text" id="xzdpcsDcode" 
						class="form-control" value="${localAtten.xzdpcsDcode}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">出生地编码</label>
				<div class="col-sm-8">
					<input type="text" id="csdDcode" 
						class="form-control" value="${localAtten.csdDcode}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">出生地详址</label>
				<div class="col-sm-8">
					<input type="text" id="csdxz" 
						class="form-control" value="${localAtten.csdxz}" >
				</div>
			</div>		
			<div class="form-group">
				<label class="col-sm-3 control-label">出生地派出所</label>
				<div class="col-sm-8">
					<input type="text" id="csdpcs" 
						class="form-control" value="${localAtten.csdpcs}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">出生地派出所编码</label>
				<div class="col-sm-8">
					<input type="text" id="csdpcsDcode" 
						class="form-control" value="${localAtten.csdpcsDcode}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">服务处所</label>
				<div class="col-sm-8">
					<input type="text" id="fwcs" 
						class="form-control" value="${localAtten.fwcs}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">服务处所详址</label>
				<div class="col-sm-8">
					<input type="text" id="fwcsxz" 
						class="form-control" value="${localAtten.fwcsxz}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">服务处所派出所</label>
				<div class="col-sm-8">
					<input type="text" id="fwcspcs" 
						class="form-control" value="${localAtten.fwcspcs}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">服务处所派出所编码</label>
				<div class="col-sm-8">
					<input type="text" id="fwcspcsDcode" 
						class="form-control" value="${localAtten.fwcspcsDcode}" >
				</div>
			</div>	
			<div class="form-group">
				<label class="col-sm-3 control-label">是否是七类重点人员</label>
				<div class="col-sm-8">
					<input type="text" id="sIsZdry" 
						class="form-control" value="${localAtten.sIsZdry}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">文化程度</label>
				<div class="col-sm-8">
					<input type="text" id="whcd" 
						class="form-control" value="${localAtten.whcd}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">就业状况</label>
				<div class="col-sm-8">
					<input type="text" id="jyzk" 
						class="form-control" value="${localAtten.jyzk}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">政治面貌</label>
				<div class="col-sm-8">
					<input type="text" id="zzmm" 
						class="form-control" value="${localAtten.zzmm}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">宗教信仰</label>
				<div class="col-sm-8">
					<input type="text" id="zjxy" 
						class="form-control" value="${localAtten.zjxy}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">婚姻状况</label>
				<div class="col-sm-8">
					<input type="text"  id="hyzk" 
						class="form-control" value="${localAtten.hyzk}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">服兵役情况</label>
				<div class="col-sm-8">
					<input type="text" id="fbyqk" 
						class="form-control" value="${localAtten.fbyqk}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">血型</label>
				<div class="col-sm-8">
					<input type="text" id="xx"
						class="form-control" value="${localAtten.xx}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">DNA编号</label>
				<div class="col-sm-8">
					<input type="text" id="dbh"
						class="form-control" value="${localAtten.dbh}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">口音</label>
				<div class="col-sm-8">
					<input type="text" id="ky"
						class="form-control" value="${localAtten.ky}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">身高</label>
				<div class="col-sm-8">
					<input type="text" id="sg"
						class="form-control" value="${localAtten.sg}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">体型</label>
				<div class="col-sm-8">
					<input type="text" id="tx"
						class="form-control" value="${localAtten.tx}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">脸型</label>
				<div class="col-sm-8">
					<input type="text" id="lx"
						class="form-control" value="${localAtten.lx}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">兴趣爱好</label>
				<div class="col-sm-8">
					<input type="text" id="xqah"
						class="form-control" value="${localAtten.xqah}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">个人专长</label>
				<div class="col-sm-8">
					<input type="text" id="grzc"
						class="form-control" value="${localAtten.grzc}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">指纹编号</label>
				<div class="col-sm-8">
					<input type="text" id="zwbh"
						class="form-control" value="${localAtten.zwbh}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">鞋号</label>
				<div class="col-sm-8">
					<input type="text" id="xh"
						class="form-control" value="${localAtten.xc}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">足长</label>
				<div class="col-sm-8">
					<input type="text" id="zc"
						class="form-control" value="${localAtten.zc}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">体貌特殊特征</label>
				<div class="col-sm-8">
					<input type="text" id="tmtz"
						class="form-control" value="${localAtten.tmtz}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">填报单位</label>
				<div class="col-sm-8">
					<input type="text" id="tbdw"
						class="form-control" value="${localAtten.tbdw}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">填报单位编码</label>
				<div class="col-sm-8">
					<input type="text" id="tbdwDcode
						class="form-control" value="${localAtten.tbdwDcode}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">填报人</label>
				<div class="col-sm-8">
					<input type="text" id="tbr"
						class="form-control" value="${localAtten.tbr}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">填报人编码</label>
				<div class="col-sm-8">
					<input type="text" id="tbrDcode"
						class="form-control" value="${localAtten.tbrDcode}" >
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">填报日期</label>
				<div class="col-sm-8">
					<input type="text" id="tbrq"
						class="form-control" value="<my:DateSubString date="${localAtten.tbrq}" subNum="16"/>" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">采集方式</label>
				<div class="col-sm-8">
					<input type="text" id="sjly"
						class="form-control" value="${localAtten.sjly}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">有效性</label>
				<div class="col-sm-8">
					<input type="text" id="yxx"
						class="form-control" value="${localAtten.yxx}" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">是否对比</label>
				<div class="col-sm-8">
					<input type="text"  id="isDb"
						class="form-control" value="${localAtten.isDb}" >
				</div>
			</div>

			<div class="hr-line-dashed"></div>
			<div class="form-group">
				<div class="col-sm-3 col-sm-offset-9">
					<button  type="button" class="btn btn-primary pull-right m-t-n-xs" onclick="editLocalAtten()" >保存内容</button>
				</div>
			</div>
		</form>

	</div>

	<script src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
    
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/iCheck/icheck.min.js"></script>
    
    <script type="text/javascript">

    var basePath = '<%=request.getContextPath()%>';
    
    toastr.options = {
  		  "closeButton": true,
  		  "debug": false,
  		  "progressBar": true,
  		  "positionClass": "toast-top-left",
  		  "showDuration": "400",
  		  "hideDuration": "1000",
  		  "timeOut": "3000",
  		  "extendedTimeOut": "1000",
  		  "showEasing": "swing",
  		  "hideEasing": "linear",
  		  "showMethod": "fadeIn",
  		  "hideMethod": "fadeOut"
  		}
    
    var editLocalAtten = function(){
    	debugger;
    	var csrq = $('#csrq').val();
    	var nl = $('#nl').val();
    	var result= $("#subForm").serialize();
    	result = result+"&csrqm="+csrq+"&nlm="+nl;
    	var index;
    	debugger;
    	$.ajax({
			type : "POST",
			url : basePath + "/rlqb/editLocalAttenInfo.do",
			data : result,
			dataType : "json",
			success : function(msg) { 
				debugger;
				if (msg.errCode == '1') {
					parent.layerCallBack('1');
				}else{
					toastr.error(msg.errMsg, "提示");
				}
			},
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				
				toastr.error("系统出错！", "提示");
			},
			beforeSend : function(XMLHttpRequest){
				index = layer.load(0, {
					  shade: [0.3,'#ccc'] //0.1透明度的白色背景
					});
			},
			complete : function(XMLHttpRequest, textStatus){
				layer.close(index);
			}
		});
	
		return false;
    }
    </script>
</body>
</html>